<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head>
    <title>Meeting会议管理系统</title>
    <link rel="stylesheet" href="/styles/common.css"/>
    <style type="text/css">

    </style>
</head>
<body>
<%@ include file="top.jsp" %>
<div class="page-body">
    <%@ include file="leftMenu.jsp" %>
    <div class="page-content">
        <div class="content-nav">
            个人中心 > 我的预定
        </div>
        <table class="listtable">
            <caption>我预定的会议：</caption>
            <tr class="listheader">
                <th>会议名称</th>
                <th>会议室名称</th>
                <th>会议开始时间</th>
                <th>会议结束时间</th>
                <th>会议预定时间</th>
                <th>操作</th>
            </tr>
            <c:forEach items="${allmeetings}" var="meeting">
                <tr>
                    <td>${meeting.meetingname}</td>
                    <td>${meeting.meetingRoom.roomName}</td>
                    <td><fmt:formatDate
                            value="${meeting.starttime}"
                            pattern="yyyy-MM-dd HH:mm:ss"/></td>
                    <td><fmt:formatDate
                            value="${meeting.endtime}"
                            pattern="yyyy-MM-dd HH:mm:ss"/></td>
                    <td><fmt:formatDate
                            value="${meeting.reservationtime}"
                            pattern="yyyy-MM-dd HH:mm:ss"/></td>
                    <td><a class="clickbutton" href="${pageContext.request.contextPath}/cancelMeeting?meetingid=${meeting.meetingid}">取消预订</a></td>
                </tr>
            </c:forEach>

            <%--            <#if mlist??>--%>
            <%--                <#list mlist as m >--%>
            <%--                    <tr>--%>
            <%--                        <td>${m.meetingname}</td>--%>
            <%--                        <td>${m.roomname}</td>--%>
            <%--                        <td>${m.starttime?string('yyyy-MM-dd HH:mm:ss')}</td>--%>
            <%--                        <td>${m.endtime?string('yyyy-MM-dd HH:mm:ss')}</td>--%>
            <%--                        <td>${m.reservationtime?string('yyyy-MM-dd HH:mm:ss')}</td>--%>
            <%--                        <td>--%>
            <%--                            <a class="clickbutton" href="/mymeetingdetails?meetingid=${m.meetingid}">查看/撤销</a>--%>
            <%--                        </td>--%>
            <%--                    </tr>--%>
            <%--                </#list>--%>
            <%--            </#if>--%>
        </table>
    </div>
</div>
<%@include file="down.jsp"%>
</body>
</html>